#coding:utf-8
from rest_framework import serializers
from basic_info.models import Nation,City,province

class NationSerializer(serializers.ModelSerializer):
    #国家的序列化

    class Meta:
        model=Nation
        fields='__all__'


class provinceSerializer(serializers.ModelSerializer):
    #国家的序列化

    class Meta:
        model=province
        fields='__all__'

class CitySerializer(serializers.ModelSerializer):
    #国家的序列化

    class Meta:
        model=City
        fields='__all__'